import Layout                  from "@/layout/index.vue"
import { createNameComponent } from "../createNode"

const route = [
    {
        path     : "/timeseries",
        component: Layout,
        redirect : "/timeseries/quantile",
        meta     : { title: "时间序列分析", icon: "sfont system-page" },
        // hideMenu : true,
        children : [
            {
                path     : "polynomialFit",
                component: createNameComponent(() => import("@/views/main/timeseries/polynomialFit/PolynomialFit.vue")),
                meta     : { title: "多项式最小二乘拟合预测", icon: "sfont system-page" },
            },
            {
                path     : "linearRegression",
                component: createNameComponent(() => import("@/views/main/timeseries/linearRegression/LinearRegression.vue")),
                meta     : { title: "一元回归预测", icon: "sfont system-page" },
            },
            {
                path     : "movingAverage",
                component: createNameComponent(() => import("@/views/main/timeseries/movingAverage/MovingAverage.vue")),
                meta     : { title: "移动平均数预测", icon: "sfont system-page" },
            },
            {
                path     : "exponentialSmoothing",
                component: createNameComponent(() => import("@/views/main/timeseries/exponentialSmoothing/ExponentialSmoothing.vue")),
                meta     : { title: "指数平滑预测", icon: "sfont system-page" },
            },
        ],
    },
]

export default route
